#include "lab1.h"

int main()
{
	{
		using namespace Course::adt;

		interval<int> u3(5, 20);
		interval<double> u1(5, 20);
		interval<double> u2(10, 10);
		interval<double> u4((0,002), 1);
		interval<double> u5(5, 1);

		cout << "u1+u2=" << u1 + u2 << endl;
		cout << "u1-u2=" << u1 - u2 << endl;
		cout << "u1*u2=" << u1*u2 << endl;
		cout << "u1/u2=" << u1 / u2 << endl;
		cout << "u5/u4=" << u5 / u4 << endl;
		(u1 + u2).print_relative();

		u3.print_relative();
		cout << "u3=" << u3 << endl;
	}

	system("pause");
	return 0;
}
